<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <style type="text/css">
        .letra {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 14px;
            text-align: justify;
        }
        .tablinea {
            border-collapse:collapse;
            margin: -1px; padding: -1px;
        }

    </style>
    <body>

<form name=""imprimir action="<?php echo base_url() . "admin.php/rpt_matricula/inicio" ?>" method="post">
    <b> <div class="control-group">
        <label class="letra" for="select03">CARRERA: <?php echo ($nombre_car);?></label><br/>
        <label class="letra" for="select03">CICLO  : <?php echo ($nombre_cic);?></label><br/>
        <label class="letra" for="select03">SECCION:<?php echo $nom_seccion;?></label><br/>
        
    </div>  </b>
    
    <div id="tablamatriculai" >
        <table id="example" width="100%" class="tablinea letra"  border="1" cellpadding="0" cellspacing="1"  bordercolor="#000000">
            
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>CEDULA</th>
                    <th>APELLIDOS</th>
                    <th>NOMBRES</th>
                    <th>PAR</th>
                    <th>HOMBRE</th>
                    <th>MUJER</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                $s_h=0;
                $s_m=0;
                
                if (!empty($reporte)) {
                    foreach ($reporte as $i => $repor) {
                        ?>
                        <tr >
                            
                            <td ><?php 
                                //if ($fila>10){
                                //    echo ("<br><table style='page-break-after:always;'></br></table><br>");
                                //}
                            echo $fila; ?>
                                </td>
                            <td><?php echo $repor['cedula_pers'] ?></td>
                            <td><?php echo $repor['apellido_pers'] ?></td>
                            <td><?php echo $repor['nombre_pers'] ?></td>
                            <td align="center"><?php echo $repor['paralelo']; ?></td>
                            <td align="center"><?php echo ($repor['sexo_pers']=="HOMBRE"?"X":" ");
                                      $s_h=$s_h+($repor['sexo_pers']=="HOMBRE"?1:0);  ?></td>
                            <td align="center"><?php echo ($repor['sexo_pers']=="MUJER"?"X":" "); 
                                      $s_m=$s_m+($repor['sexo_pers']=="MUJER"?1:0);  ?></td>
                        </tr>
                        <?php
                        $fila+=1;
                    }
                }
                ?>
                        <tr align="center">
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td align="right">SUBTOTAL</td>
                            <td><div><?php echo $s_h; ?></div></td>
                            <td><div><?php echo $s_m; ?></div></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            
                            <td align="right">TOTAL</td>
                            <td colspan="2" align="center"><div><?php echo $s_h+$s_m; ?></div></td>
                        </tr>
                       

            </tbody>
        </table>  
    </div>

</form>
 </body>
  </html>
